package net.oschina.app.protocol;

import net.oschina.app.base.BaseProtocol;
import net.oschina.app.bean.GeneralBlogBean;

import retrofit2.Call;

/**
 * Created by wei03 on 2017/1/14.
 */
public class NewsBLogProtocol extends BaseProtocol<GeneralBlogBean>{
    private String mType;

    public NewsBLogProtocol(String type) {
        mType = type;
    }

    @Override
    protected Call getCall(String pageIndex) {
        return mApiService.getGeneralBlogBean(getIndex(),mType,"20");
    }

    @Override
    protected String getIndex() {
        return "0";
    }

    @Override
    protected String getType() {
        return "latest";
    }
}
